var addressedit_obj={
		addressedit_handle:function(){
			
			$(".changeaddress li label").click(function() {
			       $(this).toggleClass("active");
			 });
			//判断是否为默认地址
			var isdefault="";
			$("label").click(function(){
				var sign=$(this).attr("class");
				if(sign=="active"){
					isdefault=1;
				}else{
					isdefault=0;
				}
			});
			
			$(".addrbtn").click(function(){
				$.post("?s=/Vip/addresseditupdate",$("#address_form").serialize()+"&isdefault="+isdefault,function(data){
					if(data.ret==1){
						alert(data.msg);
						window.location.href="?s=/Vip/addresslist";
					}else{
						alert(data.msg);
					}
				});
			});
		},
}